package org.yelongframework.model.support.mybatis.sql.fragment.attribute;

import org.yelongframework.sql.bound.SqlBound;
import org.yelongframework.sql.dialect.SqlDialect;
import org.yelongframework.sql.fragment.attribute.DefaultInsertAttributeSqlFragment;
import org.yelongframework.sql.fragment.attribute.InsertAttributeSqlFragment;

/**
 * mybatis插入属性SQL片段默认实现
 * 
 * @since 1.0.0
 */
public class DefaultMybatisInsertAttributeSqlFragment extends AbstractMybatisAttributeSqlFragment
		implements MybatisInsertAttributeSqlFragment {

	@Override
	public SqlBound getSqlBound(SqlDialect sqlDialect) {
		InsertAttributeSqlFragment insertAttributeSqlFragment = new DefaultInsertAttributeSqlFragment();
		insertAttributeSqlFragment.addAttrs(getAttrMap());
		return insertAttributeSqlFragment.getSqlBound(sqlDialect);
	}

}
